-
-
Notifications
You must be signed in to change notification settings - Fork 39.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARM backlight - timer implementation #8291
Conversation
c0036e6
to
302894a
Compare
e3a9aff
to
92c90cd
Compare
92c90cd
to
b3f74bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine once I include the extra header.
make handwired/onekey/proton_c:backlight BACKLIGHT_ENABLE=yes BACKLIGHT_DRIVER=timer
Thank you for your contribution! |
Retargeted to |
5745bfc
to
3cd3793
Compare
3cd3793
to
452d391
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__attribute__ ((weak))
✔️
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Thanks! |
* Add GPT timer based backlight driver * Update to tim15 to avoid conflict with audio * Update quantum/backlight/backlight_timer.c
* Add GPT timer based backlight driver * Update to tim15 to avoid conflict with audio * Update quantum/backlight/backlight_timer.c
* Add GPT timer based backlight driver * Update to tim15 to avoid conflict with audio * Update quantum/backlight/backlight_timer.c
* Add GPT timer based backlight driver * Update to tim15 to avoid conflict with audio * Update quantum/backlight/backlight_timer.c
* Add GPT timer based backlight driver * Update to tim15 to avoid conflict with audio * Update quantum/backlight/backlight_timer.c
* Add GPT timer based backlight driver * Update to tim15 to avoid conflict with audio * Update quantum/backlight/backlight_timer.c
Description
Now that ChibiOS has been updated, we can use GPT timers to emulate
Using hardware timer 1 with software PWM
without using the TIM1-4 PWM timers. Binding backlight to an out the way timer avoids conflicts with other features such as PWM ws2812 and allows for a more performant default behaviour for CTPC.Next phase could be to migrate
BACKLIGHT_PWM_TIMER
from the avr backlight code.Types of Changes
Checklist